<template>
  <!-- 
  <img src="../assets/img/swiper.jpg" alt />-->
  <div class="index">
    <indextop />
    <div class="gouwuche">
      <div class="gouwuchetop">
        <img src="../assets/img/footlogo.jpg" alt="logo" />
        <div>
          <router-link to="/gouwuche/gouwucheliebiao"></router-link>
          <span class="cheng">我的购物车</span>
          <span>></span>
          <router-link to="/gouwuche/gouwudingdan"></router-link>
          <span class="cheng">确认订单信息</span>
          <span>></span>
          <router-link to="/gouwuche/gouwuchetijiao"></router-link>
          <span class="cheng">订单提交成功</span>
        </div>
      </div>
    </div>
    
      <router-view/>
    <indexfoot />
  </div>
</template>

<script>
// @ is an alias to /src
import indextop from "@/components/indextop.vue";
import indexfoot from "@/components/indexfoot.vue";
import "@/assets/font/iconfont.css";
export default {
  data() {
    return {};
  },
  name: "index",
  components: {
    indextop,
    indexfoot
  },
  methods:{
    fun(){
      alert(1)
    }
  },
  mounted() {}
};
</script>
<style scoped>
.gouwuche {
  border-bottom: 1px solid #ccc;
}

.gouwuchetop {
  width: 80%;
  margin: 0px auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0px;
  font-size: 1.2rem;
}
.gouwuchetop img {
  width: 30%;
}
.gouwuchetop div span {
  padding: 0px 1rem;
}
.gouwuchetop div a {
  color: black;
  text-decoration: none;
}
.cheng{
  cursor: pointer;
}
.gouwuchetop div .router-link-active + .cheng{
  color: #f08200;
}
</style>